<template>
    <router-view/>
 </template>
<script setup>
import {ref,watch} from 'vue'
import { useRoute } from "vue-router";
const route = useRoute();
const whitePath=['/login','/index','/']
import {useStore} from "@/store/piniaIndex"
const tabStore = useStore()
watch(route,(to,from)=>{
  if (whitePath.indexOf(to.path)===-1) {
    let obj = {
      name: to.name,
      path: to.path
    }
    tabStore.ADD_TABS(obj)
  }
},{deep:true,immediate:true})



</script>
<style>
html,body,#app{
  height: 100%;
}

.app-container{
  padding:20px
}
</style>
